package com.dabai.iot.core.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 服务端订阅列表输入类
 *
 * @author kev1n
 */
@Data
public class ServerSubscribeInput implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 产品Id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "产品Id")
    @NotNull
    private Long productId;

    /**
     * 推送消息类型
     */
    @Schema(description = "推送消息类型")
    private String messageType;

}
